// com/iot/gateway/tsl/qo/EventOutputParamQo.java
package com.iot.gateway.tsl.qo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Map;

/**
 * 事件输出参数 QO
 * 对应 TSL JSON 中 events[].outputData 的每一项
 *
 * @author guoxinyu
 * @create 2025/5/28
 */
@Data
@Schema(name = "EventOutputParamQo", description = "事件输出参数 QO")
public class EventOutputParamQo {

    @Schema(description = "参数唯一标识符", example = "value")
    private String pid;

    @Schema(description = "参数名称", example = "当前温度")
    private String name;

    @Schema(description = "数据类型定义")
    private DataTypeQo dataType;

    @Schema(description = "自定义扩展字段，任意键值对", example = "{\"unit\":\"℃\"}")
    private Map<String, Object> customFields;
}
